package com.func.eurekaconsumer.controller;

import com.func.eurekaconsumer.remote.HelloRemote;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by txliu on 2019/6/25.
 */
@RestController
public class HelloController {

    @Autowired
    private HelloRemote helloRemote;

    @GetMapping("/hello")
    private String hello(String name){
       return helloRemote.hello(name);
    }

}
